﻿using UnityEngine;
using System.Collections;

public class Login : MonoBehaviour {
	public static string ten="Dien Ten";
		public static string tien="Dien So Tien";
	public GUIText a;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	void OnGUI()
	{
		ten = GUI.TextField (new Rect (Screen.width / 2, Screen.height / 2, 100, 30), ten, 25);
		tien= GUI.TextField(new Rect (Screen.width / 2, Screen.height / 2+50, 100, 30), tien, 25);
		if( GUI.Button(new Rect (Screen.width / 2, Screen.height / 2+100, 100, 30), "OK")){
					Application.LoadLevel("Screen_Play");
		}
		Vector3 b = new Vector3 (Screen.width / 2, Screen.height / 2, 0);
		a.transform.position = Camera.main.ScreenToWorldPoint (b);
		GUI.Label (new Rect (Screen.width / 2-100, Screen.height / 2, 100, 30),"Ten nguoi choi:");
		GUI.Label(new Rect (Screen.width / 2-70, Screen.height / 2+50, 100, 30),"So tien:");

		
	}
}
